IF OBJECT_ID('ssf.regex_split_4000') IS NOT NULL
	DROP FUNCTION [ssf].[regex_split_4000];
GO

CREATE FUNCTION [ssf].[regex_split_4000](
	@input NVARCHAR(4000)
	, @pattern NVARCHAR(4000)
)
RETURNS TABLE (
	position INT
	, element NVARCHAR(4000)
)
AS
EXTERNAL NAME [UtilityRegex].[SQLServerFramework.UtilityRegex].[RegexSplit4000]
GO
